<template>
    <div class="AccordionContainer">
        <div class="itemAccordions">
            <p class="itemhead" @click="showcon=!showcon">
                <slot name="accheader"></slot>
            </p>
            <div class="itemcon" v-show="showcon">
                <slot name="accbody"></slot>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: 'Accordion',
        data(){
            return {
                showcon: true
            }
        }

    }
</script>

<style scoped lang="less" rel="stylesheet/less">
    @import "../router/app.less";
</style>
